"""
Ansible Management URLs
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

router = DefaultRouter()
router.register(r'inventories', views.AnsibleInventoryViewSet)
router.register(r'credentials', views.AnsibleCredentialViewSet)
router.register(r'playbooks', views.AnsiblePlaybookViewSet)
router.register(r'jobs', views.AnsibleJobViewSet)

urlpatterns = [
    path('', include(router.urls)),
    path('execute-adhoc/', views.execute_adhoc, name='execute-adhoc'),
    path('modules/', views.get_ansible_modules, name='ansible-modules'),
]
